package cn.tedu.apps_system.mapper;

import cn.tedu.apps_system.pojo.entity.Policies;
import cn.tedu.apps_system.pojo.entity.Promotion;
import cn.tedu.apps_system.pojo.entity.Video;
import cn.tedu.apps_system.pojo.vo.PoliciesListVO;
import cn.tedu.apps_system.pojo.vo.PromotionVO;
import cn.tedu.apps_system.pojo.vo.VideoVO;
import io.lettuce.core.dynamic.annotation.Param;

import java.util.List;

public interface GovernmentMapper {
    int set(Policies policies);

    List<PoliciesListVO> getList();

    int addVideo(Video video);

    List<VideoVO> getVideo();

    int addProduct(Promotion promotion);

    int reviseProduct(Promotion promotion);

    List<PromotionVO> getProductList();
    Policies getById(Long id); // 根据ID查询政策
    int updateStatusById(@Param("id") Long id, @Param("status") Integer status); // 更新状态
    int deleteById(Long id); // 删除政策


}
